package com.price.httplib.status

enum class NetworkType(private var desc:String?) {
    NETWORK_WIFI("WiFi"),
    NETWORK_4G("4G"),
    NETWORK_2G("2G"),
    NETWORK_3G("3G"),
    NETWORK_UNKNOWN("Unknown"),
    NETWORK_NO("No network");



    open fun NetworkType(desc: String?) {
        this.desc = desc
    }

    override fun toString(): String {
        return desc ?: NETWORK_UNKNOWN.toString()
    }
}